package com.adam.management.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseStatus;

/**
 * @projectName: adam-management-system
 * @description:
 * @author: Adam
 * @create: 2019-12-22 17:30
 **/

@Controller
public class SessionController {

    private Logger logger = LoggerFactory.getLogger(SessionController.class);

    @GetMapping("session/invalid")
    @ResponseStatus(HttpStatus.UNAUTHORIZED)
    public String sessionInvalid(){
        logger.warn("===>>> session已失效，请重新认证");
        return "login";
    }
}
